//
//  MineTableViewCell.m
//  XIWenLeJian
//
//  Created by lanou3g on 15/11/14.
//  Copyright © 2015年 蓝足. All rights reserved.
//

#import "MineTableViewCell.h"
#import "Masonry.h"

@implementation MineTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _mineImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_mineImageView];
        
        
        _label = [[UILabel alloc]init];
        _label.font = [UIFont systemFontOfSize:18];
        [self.contentView addSubview:_label];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [_mineImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(10);
        make.left.mas_equalTo(20);
        make.size.mas_equalTo(CGSizeMake(40, 40));
    }];
    [_label mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(15);
        make.left.mas_equalTo(80);
        make.right.mas_equalTo(-20);
        make.height.mas_equalTo(30);
    }];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
